<?php 
set_time_limit(3600); 

echo shell_exec('rm -rf /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/temp/');
// phpinfo();

// load rss feed items in db
$rss_feed_item_file_name = 'rss_feed_item_2011_10_16_01_16';
// echo shell_exec("unzip /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/$rss_feed_item_file_name.zip -d /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/ ");
// echo shell_exec("mv /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/wamp/www/demo/scripts/scripts/articles_data/$rss_feed_item_file_name.sql  /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/ ");
// echo shell_exec('rm  -rf /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/wamp '); 
// echo shell_exec('mysql -hfreearticleboxcom.ipagemysql.com -uarticlepagescocc -pstr0ng articlepagescocc < /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/'.$rss_feed_item_file_name.'.sql'); 

// echo shell_exec('cd /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data'); 
// echo shell_exec('nohup tar -xf rss_feed_item_dump.sql.gz > rss.log &'); 


// echo shell_exec('mysqldump -hfreearticleboxcom.ipagemysql.com -uarticlepagescocc -pstr0ng articlepagescocc rss_feed_temp > /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/rss_feed_temp_dump_20110917.sql '); 
// echo shell_exec('tar -cvzf /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/rss_feed_temp_dump_20110917.sql.tar.gz  /hermes/bosweb/web009/b96/ipg.freearticleboxcom/articlepages.co.cc-redirect/articles_data/rss_feed_temp_dump_20110917.sql '); 
?>

